package com.yihen.service;

import com.yihen.dto.Result;

public interface OrderService {
    // 生成订单
    public Result createOrder(Long goodsId);

    // 获取自己购买商品订单
    public Result getMyBuyOrder();

    // 获取自己卖出商品订单
    public Result getMySellOrder();


    // 完成订单
    public Result completeOrder(Long orderId,int appraise);

    // 取消订单
    public Result cancelOrder(Long orderId);

    // 查询订单
    public Result selectOrderByOrderId(int mode, String orderId);

    // 获取全部订单
    public Result getAllOrders();

    // 重置评价
    public Result resetAppraise(Long orderId);
}
